package io.gitee.skyarthur1987.leporidae.delayqueue.exception;

import io.gitee.skyarthur1987.leporidae.delayqueue.dto.BatchDelayQueueTask;

/**
 * 延迟队列消费异常处理
 * Created by skyarthur on 2024/3/10
 */
public interface DelayQueueConsumerExceptionHandler {
    /**
     * 具体处理方法
     *
     * @param e    异常
     * @param task 一批延迟队列任务
     */
    void handle(Throwable e, BatchDelayQueueTask task);
}
